package cn.gs.util.set;

// @author gs
public class MultiObject {

    private Object[] o;

    public MultiObject(int len) {
        o = new Object[len];
    }

    public MultiObject(Object... obj) {
        o = new Object[obj.length];
        System.arraycopy(o, 0, this.o, 0, obj.length);
    }

    public Object get(int index) {
        if (index >= 0 && index < o.length) {
            return o[index];
        } else {
            return null;
        }
    }
}
